package com.zzgc.common.entity;

import lombok.Data;
import sun.security.krb5.internal.rcache.AuthList;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

/**
 * 菜单表(AuthRight)实体类
 *
 * @author makejava
 * @since 2022-11-19 17:05:17
 */
@Data
public class AuthRight implements Serializable {
    private static final long serialVersionUID = 843481400244394966L;
    /**
     * 主键
     */
    private Long id;
    /**
     * 菜单名
     */
    private String aName;
    /**
     * 父级id
     */
    private Long aParentId;
    /**
     * 层级
     */
    private Integer aLocation;
    /**
     * 提示
     */
    private String aTip;
    /**
     * 功能链接
     */
    private String aUrl;
    /**
     * 状态
     */
    private Integer aState;
    /**
     * 编码
     */
    private String aPcode;
    /**
     * 排序
     */
    private Integer aSort;
    /**
     * 图标路径
     */
    private String aIconPath;
    /**
     * 删除标记
     */
    private Integer aDeleteFlag;
    /**
     *  子目录
     */
    private List<AuthRight> rights;

    public boolean equals(Object obj) {

        if (obj instanceof AuthRight) {
            AuthRight right = (AuthRight) obj;

            return this.id.equals(right.id);
        } else
            return super.equals(obj);
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }
}

